# -*- coding: utf-8 -*-
# @Time    : 2025/2/11 下午8:28
# @Author  : lh
# @Email   : lhhlhh822@peatlmail.com
# @File    : confest.py
# @Software: PyCharm
"""
pytest中共享fixture模块
"""
import pytest
import requests


@pytest.fixture
def token():
    data = {
        "app_key": "74F287834A1EC175B7AD5A537202E45C",
        "username": "我磊哥",
        "password": "e10adc3949ba59abbe56e057f20f883e"
    }
    r=requests.post(url="http://hn216.api.yesapi.cn/api/APP/User/Login",data=data)
    r=r.json()
    return r.get('data').get('token')